package com.tempjob.common.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author hui
 * @Date 21-9-13 下午2:53
 **/
@ApiModel
@Data
public class QueryAreaDTO extends PageSearchDTO implements Serializable {

    @ApiModelProperty("省编码")
    private Long province;

    @ApiModelProperty("市编码")
    private Long city;

    @ApiModelProperty("区编码")
    private Long area;

    @ApiModelProperty("街道编码")
    private Long street;

    @ApiModelProperty("社区编码")
    private Long community;

    @ApiModelProperty("名称，用于搜索")
    private String name;

    public QueryAreaDTO() {
    }

    public QueryAreaDTO(Long province, Long city, Long area) {
        this.province = province;
        this.city = city;
        this.area = area;
    }

    public QueryAreaDTO(Long province, Long city, Long area, Long street, Long community) {
        this.province = province;
        this.city = city;
        this.area = area;
        this.street = street;
        this.community = community;
    }
}
